package com.eco.fanliapp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eco.fanliapp.entity.SyDoubletwelveUser;
import com.eco.fanliapp.vo.DoubleTwelveUserVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2019-12-06
 */
public interface SyDoubletwelveUserMapper extends BaseMapper<SyDoubletwelveUser> {

    int insertDoubletweleve(SyDoubletwelveUser syDoubletwelveUser);

    Integer isParticipate(Long userId);

    List<DoubleTwelveUserVo> selectDoubletwelveUserList();

    int updateByUserId(@Param("userId") Long userId, @Param("orderId")String orderId, @Param("freeMoney")BigDecimal freeMoney);

    int updateStatusByUserId(@Param("userId")Long userId);
}
